<!DOCTYPE html>
<!-- saved from url=(0053)http://localhost:6060/pkg/github.com/Marshal/Marshal/ -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#375EAB">

  <title>Marshal - Go Documentation Server</title>

<link type="text/css" rel="stylesheet" href="./Marshal - Go Documentation Server_files/style.css">

<script>window.initFuncs = [];</script>
<script src="./Marshal - Go Documentation Server_files/jquery.js" defer=""></script>



<script>var goVersion = "go1.15.2";</script>
<script src="./Marshal - Go Documentation Server_files/godocs.js" defer=""></script>
</head>
<body>

<div id="lowframe" style="position: fixed; bottom: 0; left: 0; height: 0; width: 100%; border-top: thin solid grey; background-color: white; overflow: auto;">
...
</div><!-- #lowframe -->

<div id="topbar" class="wide"><div class="container">
<div class="top-heading" id="heading-wide"><a href="http://localhost:6060/pkg/">Go Documentation Server</a></div>
<div class="top-heading" id="heading-narrow"><a href="http://localhost:6060/pkg/">GoDoc</a></div>
<a href="http://localhost:6060/pkg/github.com/Marshal/Marshal/#" id="menu-button"><span id="menu-button-arrow">▽</span></a>
<form method="GET" action="http://localhost:6060/search">
<div id="menu" style="min-width: 60px;">

<span class="search-box"><input type="search" id="search" name="q" placeholder="Search" aria-label="Search" required=""><button type="submit"><span><!-- magnifying glass: --><svg width="24" height="24" viewBox="0 0 24 24"><title>submit search</title><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path><path d="M0 0h24v24H0z" fill="none"></path></svg></span></button></span>
</div>
</form>

</div></div>



<div id="page" class="wide" tabindex="-1" style="outline: 0px;">
<div class="container">


  <h1>
    Package Marshal
    <span class="text-muted"></span>
  </h1>







<div id="nav"></div>


<!--
	Copyright 2009 The Go Authors. All rights reserved.
	Use of this source code is governed by a BSD-style
	license that can be found in the LICENSE file.
-->
<!--
	Note: Static (i.e., not template-generated) href and id
	attributes start with "pkg-" to make it impossible for
	them to conflict with generated attributes (some of which
	correspond to Go identifiers).
-->

	<script>
	document.ANALYSIS_DATA = null;
	document.CALLGRAPH = null;
	</script>

	
		
		<div id="short-nav">
			<dl>
			<dd><code>import "gitee.com/Y_Howell/go-travel/tree/master/Marshal/Marshal"</code></dd>
			</dl>
			<dl>
			<dd><a href="http://localhost:6060/pkg/github.com/Marshal/Marshal/#pkg-overview" class="overviewLink">Overview</a></dd>
			<dd><a href="http://localhost:6060/pkg/github.com/Marshal/Marshal/#pkg-index" class="indexLink">Index</a></dd>
			
			
				<dd><a href="http://localhost:6060/pkg/github.com/Marshal/Marshal/#pkg-subdirectories">Subdirectories</a></dd>
			
			</dl>
		</div>
		<!-- The package's Name is printed as title by the top-level template -->
		<div id="pkg-overview" class="toggleVisible">
			<div class="collapsed">
				<h2 class="toggleButton" title="Click to show Overview section">Overview ▹</h2>
			</div>
			<div class="expanded">
				<h2 class="toggleButton" title="Click to hide Overview section">Overview ▾</h2>
				
				
			</div>
		</div>

		<div id="pkg-index" class="toggleVisible">
		<div class="collapsed">
			<h2 class="toggleButton" title="Click to show Index section">Index ▹</h2>
		</div>
		<div class="expanded">
			<h2 class="toggleButton" title="Click to hide Index section">Index ▾</h2>

		<!-- Table of contents for API; must be named manual-nav to turn off auto nav. -->
			<div id="manual-nav">
			<dl>
			
			
				<dd><a href="http://localhost:6060/pkg/github.com/Marshal/Marshal/#pkg-variables">Variables</a></dd>
			
			
				
				<dd><a href="http://localhost:6060/pkg/github.com/Marshal/Marshal/#Marshal">func Marshal(object interface{}, tags ...string) ([]byte, error)</a></dd>
			
			
			
			</dl>
			</div><!-- #manual-nav -->

		

		
			<h3>Package files</h3>
			<p>
			<span style="font-size:90%">
			
				<a href="http://localhost:6060/src/github.com/Marshal/Marshal/marshal.go">marshal.go</a>
			
			</span>
			</p>
		
		</div><!-- .expanded -->
		</div><!-- #pkg-index -->

		

		
		
			<h2 id="pkg-variables">Variables <a class="permalink" href="http://localhost:6060/pkg/github.com/Marshal/Marshal/#pkg-variables">¶</a></h2>
			
				
				<pre>var (
    <span id="TypeString">TypeString</span>  = <a href="http://localhost:6060/pkg/reflect/">reflect</a>.<a href="http://localhost:6060/pkg/reflect/#TypeOf">TypeOf</a>("")
    <span id="TypeFloat64">TypeFloat64</span> = <a href="http://localhost:6060/pkg/reflect/">reflect</a>.<a href="http://localhost:6060/pkg/reflect/#TypeOf">TypeOf</a>(0.0)
    <span id="TypeBoolean">TypeBoolean</span> = <a href="http://localhost:6060/pkg/reflect/">reflect</a>.<a href="http://localhost:6060/pkg/reflect/#TypeOf">TypeOf</a>(<a href="http://localhost:6060/pkg/builtin/#true">true</a>)
)</pre>
			
				
				<pre>var (
    <span id="ErrorInvalidPointer">ErrorInvalidPointer</span> = <a href="http://localhost:6060/pkg/errors/">errors</a>.<a href="http://localhost:6060/pkg/errors/#New">New</a>("the object isn't a pointer")
)</pre>
			
		
		
			
			
			<h2 id="Marshal">func <a href="http://localhost:6060/src/github.com/Marshal/Marshal/marshal.go?s=87:151#L1">JsonMarshal</a>
				<a class="permalink" href="http://localhost:6060/pkg/github.com/Marshal/Marshal/#Marshal">¶</a>
				
				
			</h2>
			<pre>func JsonMarshal(object interface{}, tags ...<a href="http://localhost:6060/pkg/builtin/#string">string</a>) ([]<a href="http://localhost:6060/pkg/builtin/#byte">byte</a>, <a href="http://localhost:6060/pkg/builtin/#error">error</a>)</pre>
			
			
			

		
		
	

	





	
	
		<h2 id="pkg-subdirectories">Subdirectories <a class="permalink" href="http://localhost:6060/pkg/github.com/Marshal/Marshal/#pkg-subdirectories">¶</a></h2>
	
	<div class="pkg-dir">
		<table>
			<tbody><tr>
				<th class="pkg-name">Name</th>
				<th class="pkg-synopsis">Synopsis</th>
			</tr>

			
			<tr>
				<td colspan="2"><a href="http://localhost:6060/pkg/github.com/Marshal/">..</a></td>
			</tr>
			

			
				<tr>
				
					<td class="pkg-name" style="padding-left: 0px;">
						<a href="http://localhost:6060/pkg/github.com/Marshal/Marshal/example/">example</a>
					</td>
				
					<td class="pkg-synopsis">
						
					</td>
				</tr>
			
		</tbody></table>
	</div>



<div id="footer">
Build version go1.15.2.<br>
Except as <a href="https://developers.google.com/site-policies#restrictions">noted</a>,
the content of this page is licensed under the
Creative Commons Attribution 3.0 License,
and code is licensed under a <a href="http://localhost:6060/LICENSE">BSD license</a>.<br>
<a href="http://localhost:6060/doc/tos.html">Terms of Service</a> |
<a href="http://www.google.com/intl/en/policies/privacy/">Privacy Policy</a>
</div>

</div><!-- .container -->
</div><!-- #page -->


</body></html>